/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tugas_array;

/**
 *
 * @author novaldebbyp
 */
public class TestArrays {
    public static void main(String[] args){
        int array1[]={2,3,5,7,11,13,17,19};
        int array2[];
        TestArrays.printArray(array1);
        array2 = array1;
        array2[0]=0;
        array2[2]=2;
        array2[4]=4;
        array2[6]=6;
        TestArrays.printArray(array1);
    }
    public static void printArray(int param[]){
        System.out.print("<");
        for(int i=0;i<param.length;i++){
            System.out.print(param[i]);
            if(i!=param.length-1){
                System.out.print(", ");
            }
        }
        System.out.println(">");
    }
}
